<?php defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' );?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php 
	DEFINE('_ISO','charset=iso-8859-1');
	$iso = explode( '=', _ISO );
	echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
     
	 
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<jdoc:include type="head" />
<script type="text/javascript" src="templates/jquery/jquery.js"></script>
<?php
echo "<link rel=\"stylesheet\" href=\"".$this->baseurl.'/templates/'.$this->template."/css/template_css.css\" type=\"text/css\"/>" ;
//echo "<link href=\"".JURI::base()."modules/mod_jootabs/style1.css\" rel=\"stylesheet\" type=\"text/css\" />";

if (JFactory::getUser()->id) { //is user logged in? 
// The next query checks if there is something to edit or create. For docman and com_events it is also prepared (different tasks).
// If your editor isn´t loaded in the frontend, check if there is another "task" in the URL than the following. 
// If it doesn´t work, just put // in front of the following line.
if($_REQUEST["task"] == "edit" || $_REQUEST["task"] == "new" || $_REQUEST["task"] == "modify" || $_REQUEST["task"] == "upload" || $_REQUEST["task"] == "editdoc")  
{	
	include ("editor/editor.php");
	initEditor();}
} 

// count some stuff for layout
if (($this->countModules("user1")) && ($this->countModules("user2"))) {  //if both modules are loaded, we need a 50%-layout for them
	$usera='user1';
	$userb='user2';
}
	else if (($this->countModules("user1")) || ($this->countModules("user2"))) { // if only one, then 100% no matter which one.
		$usera='user3';
		$userb='user3';
	}
?>

</head>
<body>


     <script type="text/javascript">
        $(document).ready(function() {
            var $navLi = $('#topmenu .menu li'); 
        $('<span></span>').insertBefore('#topmenu .menu li a');
        
        $navLi.each(function() {
           var linkText = $(this).find('a').text();
           $(this).find('span').show().text(linkText);
           //alert(linkText);
        });
        $navLi.hover(function() {
            $(this)
            .find('span')
            .stop()
            .animate({marginTop: '-40px'}, 300);
        }, function() {
            $(this)
            .find('span')
            .stop()
            .animate({marginTop: '0px'}, 300);
        });
        });
     </script>
<div id="accessibility"> <a href="index.php#menu"> Menu</a> <a href="index.php#content"> Content/Inhalt</a> </div>
<div id="pagewidth" >
<div id="header" >
  <div id="top-top"> <a href="index.php"><?php echo "<img src=\"". $this->baseurl.'/templates/'.$this->template."/images/logo.gif\" border=\"0\" width=\"250\" height=\"60\" /></a>"; ?> </div>
  <?php if ($this->countModules( "banner" )) { ?>
  <div id="banner">
    <jdoc:include type="modules" name="banner" style='raw' />
  </div>
  <?php } ?>
  <div class="clr"></div>
  <div id="top-bottom">
    <div id="date">Hôm nay, ngày <?php echo JHTML::_('date', 'now', "dd/MM/YYYY" ? "H:M" : JText::_('DATE_FORMAT_LC1'));?></div>
    <div id="search">
      <?php if ($this->countModules( "p-search" )) { ?>
      <jdoc:include type="modules" name="p-search" style=1 />
      <?php } ?>
    </div>
  </div>
  <div class="clr"></div>
  <!--Top menu here! -->
  <div id="topmenu">
    <?php if ($this->countModules( "top-menu" )) { ?>
    <jdoc:include type="modules" name="top-menu" style="raw" />
    <?php } ?>
  </div>
  <!--e. Top menu-->
</div>
<?php if ($this->countModules( "break-bar" )) { ?>
<div id="submenu">
  <jdoc:include type="modules" name="break-bar" style="raw" />
</div>
<?php } ?>
<div class="clr"></div>
<div id="outer" >
  <?php if (($this->countModules( "right" )) || ($this->countModules( "top" ))) { ?>
  <div id="maincol-normal" >
    <?php } else { ?>
    <div id="maincol-wide" >
      <?php } 
if ($this->countModules( "p-l-topnews" )) { ?>
      <div id="<?php echo $usera; ?>">
        <jdoc:include type="modules" name="p-l-topnews"' style='xhtml' />
      </div>
      <?php }
if ($this->countModules( "p-r-topnews" )) { ?>
      <div id="<?php echo $userb; ?>">
        <jdoc:include type="modules" name="p-r-topnews" style='xhtml' />
      </div>
      <?php } 
?>
      <div class="clr"></div>
      <div class="content"><a name="content"></a>
        <jdoc:include type="modules" name="user6" style="xhtml" />
        <jdoc:include type="modules" name="user7" style='table' />
        <jdoc:include type="component" />
      </div>
    </div>
    <?php if (($this->countModules( "right" )) || ($this->countModules( "top" ))) { ?>
    <div id="rightcol">      
      <jdoc:include type="modules" name="right" style="xhtml" />
    </div>
    <?php } ?>
    <div class="clr"></div>
  </div>
  <div id="bottom">
    <jdoc:include type="modules" name="bottom" style='raw' />
  </div>
  <div id="footer" >    
    <div id="source">Designed by <a title="Gia sư Phú Yên" href="www.giasuphuyen.edu.vn">www.giasuphuyen.edu.vn</a></div>
    <!-- Do not modify or remove the lines below - Khong duoc sua hay xoa bo dong duoi day -->
    <div style="font-size:80%">Designed by <a title="Gia sư Phú Yên" href="www.giasuphuyen.edu.vn">www.giasuphuyen.edu.vn</a></div>
    <jdoc:include type="modules" name="debug" style='raw' />
  </div>
</div>
</body>
</html>